import 'package:get/get.dart';

import '../controllers/tabs_controller.dart';
import "../../home/controllers/home_controller.dart";
import '../../category/controllers/category_controller.dart';
// import '../../cart/controllers/cart_controller.dart';
import '../../service/controllers/service_controller.dart';
import '../../user/controllers/user_controller.dart';

class TabsBinding extends Bindings {
  // tab页面切换用同一个页面,不通过路由切换，只绑定一次
  @override
  void dependencies() {
    Get.lazyPut<HomeController>(() => HomeController()); //创建homeController
    Get.lazyPut<TabsController>(() => TabsController());
    Get.lazyPut<CategoryController>(() => CategoryController());
    // Get.lazyPut<CartController>(() => CartController());
    Get.lazyPut<ServiceController>(() => ServiceController());
    Get.lazyPut<UserController>(() => UserController());
  }
}
